package com.classic.okhttp.base.consts;

import okhttp3.MediaType;

/**
 * Created by classic on 16/3/27.
 */
public final class OkHttpConst {
    private OkHttpConst(){}

    public static final int HTTP_CODE_SUCCESS     = 200;
    public static final int HTTP_CODE_ERROR_OTHER = -1;

    /**
     * 默认超时时间
     */
    public static final long DEFAULT_TIME_OUT = 15_000;

    public static final String MIME_TYPE_STREAM = "application/octet-stream";
    public static final MediaType MEDIA_TYPE_STREAM = MediaType.parse("application/octet-stream");
    public static final MediaType MEDIA_TYPE_PLAIN = MediaType.parse("text/plain;charset=utf-8");

}
